package com.ruoyi.credit.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 评价任务详情对象 eva_task_detail
 *
 * @author zhulei
 * @date 2022-03-10
 */
public class EvaTaskDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务详情id */
    private Long taskDetailId;

    /** 任务id */
    @Excel(name = "任务id")
    private Long taskId;

    /** 参评部门id */
    @Excel(name = "参评部门id")
    private Long deptId;

    /** 合同id */
    private Long contractId;

    /** 合约方id（供应商/客户） */
    private Long targetId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 合约方名称（供应商/客户） */
    @Excel(name = "合约方名称", readConverterExp = "供=应商/客户")
    private String targetName;

    /** 合同名称 */
    @Excel(name = "合同名称")
    private String contractName;

    /** 合同收支类型 */
    @Excel(name = "合同收支类型")
    private String contractClass;

    /** 合同类型 */
    @Excel(name = "合同类型")
    private String contractType;

    /** 年份 */
    @Excel(name = "年份")
    private String year;

    /** 权重 */
    @Excel(name = "权重")
    private String weight;

    /** 评分 */
    @Excel(name = "评分")
    private String score;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String filePath;

    /** 统计分数 */
    private String staticScore;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /**
     * 同一个任务下同一个 供应商/客户 所有合同的个数
     */
    private BigDecimal contractNums;

    /**
     * 同一个任务下同一个 供应商/客户 所有合同评价的总分
     */
    private BigDecimal sumScore;

    public BigDecimal getContractNums() {
        return contractNums;
    }

    public void setContractNums(BigDecimal contractNums) {
        this.contractNums = contractNums;
    }

    public BigDecimal getSumScore() {
        return sumScore;
    }

    public void setSumScore(BigDecimal sumScore) {
        this.sumScore = sumScore;
    }

    public void setTaskDetailId(Long taskDetailId)
    {
        this.taskDetailId = taskDetailId;
    }

    public Long getTaskDetailId()
    {
        return taskDetailId;
    }
    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId()
    {
        return taskId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setContractId(Long contractId)
    {
        this.contractId = contractId;
    }

    public Long getContractId()
    {
        return contractId;
    }
    public void setTargetId(Long targetId)
    {
        this.targetId = targetId;
    }

    public Long getTargetId()
    {
        return targetId;
    }
    public void setTaskName(String taskName)
    {
        this.taskName = taskName;
    }

    public String getTaskName()
    {
        return taskName;
    }
    public void setTargetName(String targetName)
    {
        this.targetName = targetName;
    }

    public String getTargetName()
    {
        return targetName;
    }
    public void setContractName(String contractName)
    {
        this.contractName = contractName;
    }

    public String getContractName()
    {
        return contractName;
    }
    public void setContractClass(String contractClass)
    {
        this.contractClass = contractClass;
    }

    public String getContractClass()
    {
        return contractClass;
    }
    public void setContractType(String contractType)
    {
        this.contractType = contractType;
    }

    public String getContractType()
    {
        return contractType;
    }
    public void setYear(String year)
    {
        this.year = year;
    }

    public String getYear()
    {
        return year;
    }
    public void setWeight(String weight)
    {
        this.weight = weight;
    }

    public String getWeight()
    {
        return weight;
    }
    public void setScore(String score)
    {
        this.score = score;
    }

    public String getScore()
    {
        return score;
    }
    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }

    public String getFilePath()
    {
        return filePath;
    }
    public void setStaticScore(String staticScore)
    {
        this.staticScore = staticScore;
    }

    public String getStaticScore()
    {
        return staticScore;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskDetailId", getTaskDetailId())
            .append("taskId", getTaskId())
            .append("deptId", getDeptId())
            .append("contractId", getContractId())
            .append("targetId", getTargetId())
            .append("taskName", getTaskName())
            .append("targetName", getTargetName())
            .append("contractName", getContractName())
            .append("contractClass", getContractClass())
            .append("contractType", getContractType())
            .append("year", getYear())
            .append("weight", getWeight())
            .append("score", getScore())
            .append("filePath", getFilePath())
            .append("staticScore", getStaticScore())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
